<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./vue.js"> </script>
</head>
<body>
  <div id="app">
    {{ name }} 
    <!-- <button v-on:click="clickMe">click me</button> -->
    <button @click="clickMe(1,2,$event)">click me</button>
  </div>

  <script>
    new Vue({
      el: "#app", 
      data: {     
        name: "韩梅梅"
      },
      methods: {
        clickMe(a,b,e) {
          console.log('点我',a,b,e)
        } 
      }
    })
    /*
     事件的处理函数中有一个默认的事件对象作为参数
     如果有其他参数传递 默认的事件对象就没了
     通过$event 来传递事件对象
    */
  </script>
</body>
</html>
